<?php
class Emotion extends IDecorator{
	public function decorator($obj){
		$obj->weibo = preg_replace('/\[哈哈\]/', 
					'<img src="http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/6a/laugh.gif" />',
					$obj->weibo);
	}
}